<?php
/*
 * assignments File
 *
 * @link http://riedel-st.de
 * @author Stefan Riedel <sr@riedel-st.de>
 */

?>
<?= CHtml::beginForm(); ?>
<dl>
<dt><?=CHtml::label(Yii::t('crm', 'Bitte wählen Sie einen Nutzer aus.'), 'users_username')?></dt>
<?= CHtml::activeDropDownList($this->module->getUserModel(), 'users_username',
    Chtml::listData($this->module->getUserModel()->findAll(), 'users_username', 'users_username'),
    array('size'=>1,'class'=>'dropdown','ajax' => array(
    'type'=>'POST',
    'url'=>array('showAssigns'),
    'update'=>'#assignments',
    'beforeSend' => 'function(){
        $(".ui-tabs-selected a:first-child").addClass("preloader");
    }',
    'complete' => 'function(){
        $(".ui-tabs-selected a:first-child").removeClass("preloader");
    }',
    ),
    'prompt'=>'select user'
    )); ?>
</dl>
<?= CHTml::endForm(); ?>
<div id="assignments">

</div>